package nl.mkmedia.tuio.behaviours {
	import flash.display.DisplayObject;
	import nl.mkmedia.tuio.TUIOPoint;
	import flash.geom.Point;

	/**
	 * @author Mingoes Kukupessy (mingoes at gmail dot com)
	 */
	public class BDrag extends BaseBehaviour{
		
		public var startPoint : Point;
		
		public function BDrag(displayObject : DisplayObject)
		{
			super(displayObject);
		}
		
		override public function act(points:Array):void
		{
			super.act(points);
			if(pointsOn.length == 1) {
				displayObject.x += TUIOPoint(pointsOn[0]).dX;
				displayObject.y += TUIOPoint(pointsOn[0]).dY;
			}
		}
	}
}
